package com.colin.aiyi.presenter.Imp_de;

import com.colin.aiyi.dao.ImpxUtils3_de.IService;
import com.colin.aiyi.dao.ImpxUtils3_de.ImpComment;
import com.colin.aiyi.entity.CommentList;
import com.colin.aiyi.eventbus.EventCommentist;
import com.colin.aiyi.presenter.Interface_Derecated.AbsPresenter;

/**
 * Created by hl on 2017/6/1.
 */
@Deprecated
public class ImpCommentP extends AbsPresenter {
    IService iService=new ImpComment();
    @Override
    public void getTById(String id) {
        super.getTById(id);
        iService.getTById(this,id);

    }

    @Override
    public void onSuccess(Object t) {
        if (t instanceof CommentList)
        {
            sendMsgToView(new EventCommentist((CommentList) t));
        }
    }

    @Override
    public void onFailed(Exception e) {

    }


}
